package com.aitoedu.server.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Accessors(chain = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OnlyConversationVO {

    @Schema(description = "内容")
    private String content;

    @Schema(description = "0代表AI,1代表学生")
    private Integer role;

    @Schema(description = "对话中每条消息创建时间")
    @JsonFormat(pattern = "yyyy.M.d HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

}
